/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.mushroom.website.client.dto;

import java.util.ArrayList;
import java.util.List;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 *
 * @author roman
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class MushroomDto {
    @JsonProperty
    private Long id;
    
    @JsonProperty
    private Integer growsFrom;
    
    @JsonProperty
    private Integer growsUntil;
    
    @JsonProperty
    private String name;
    
    @JsonProperty
    private MushroomTypeDto type;
    
    @JsonProperty
    private List<Long> visits =  new ArrayList();

    public MushroomDto() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getGrowsFrom() {
        return growsFrom;
    }

    public void setGrowsFrom(Integer growsFrom) {
        this.growsFrom = growsFrom;
    }

    public Integer getGrowsUntil() {
        return growsUntil;
    }

    public void setGrowsUntil(Integer growsUntil) {
        this.growsUntil = growsUntil;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MushroomTypeDto getType() {
        return type;
    }

    public void setType(MushroomTypeDto type) {
        this.type = type;
    }

    public List<Long> getVisits() {
        return visits;
    }

    public void setVisits(List<Long> visits) {
        this.visits = visits;
    }
    
}
